import Vue from 'vue';
import Pc from './main.vue';


import ModelData from './models/ModelData';
Vue.prototype.ModelData = new ModelData();
import router from './router/index';

import iView from 'iview';
import 'iview/dist/styles/iview.css'; // 默认主题
Vue.use(iView);

import { xerror } from './utils/axios'
import { imagesOssPrefix, XtoFixed, timeToYMdHms } from './utils/ztbase'
Vue.prototype.$api = { imagesOssPrefix, XtoFixed, timeToYMdHms,xerror};

//图片放大组件
import CsjImagePreview from 'src/views/components/imagePreview/imagePreview.vue'
Vue.component("CsjImagePreview", CsjImagePreview);

import './static/iconfont/iconfont.css'; //字体图标库
import './utils/csjbase.js';
import './static/scss/base.scss';
//引用公共scss
import 'src/static/scss/csjbase.scss'
//加载自定义权限指令
import './directive/v-xclick.js';

(<any>window).__VueRoot__ = new Vue({
  el: '#csj',
  router,
  template: '<Pc/>',
  components: { Pc }
});

